tiledrendering extracts values when clicking render

Change-Id: I4b350dc6c796bb1af0740917e17ac79b2a259a0a
diff --git a/sw/qa/tiledrendering/tiledrendering.cxx b/sw/qa/tiledrendering/tiledrendering.cxx
index 9f296bd..bfd20c3 100644
--- a/sw/qa/tiledrendering/tiledrendering.cxx
+++ b/sw/qa/tiledrendering/tiledrendering.cxx
@@ -33,21 +33,26 @@

class TiledRenderingDialog: public ModalDialog{
public:
    TiledRenderingDialog() : ModalDialog(DIALOG_NO_PARENT, "TiledRendering", "qa/sw/ui/tiledrendering.ui"){
    TiledRenderingDialog() : ModalDialog(DIALOG_NO_PARENT, "TiledRendering", "qa/sw/ui/tiledrendering.ui")
    {
        PushButton * renderButton;
        get(renderButton,"buttonRenderTile");
        renderButton->SetClickHdl( LINK( this, TiledRenderingDialog, RenderHdl));
        SetStyle(GetStyle()|WB_CLOSEABLE);
    }
    virtual ~TiledRenderingDialog(){}
    virtual ~TiledRenderingDialog()
    {
    }

    DECL_LINK ( RenderHdl, Button * );

    sal_Int32 extractInt(const char * name){
            NumericField * pField;
            get(pField,name);
            OUString aString(pField->GetText());
            SAL_INFO("TiledRenderingDialog","param " << name << " returned " << aString);
            return aString.toInt32();
    sal_Int32 extractInt(const char * name)
    {
        NumericField * pField;
        get(pField,name);
        OUString aString(pField->GetText());
        std::cerr << "param " << name << " returned " << aString <<"/n";
        return aString.toInt32();
    }

};
@@ -60,8 +65,7 @@
    extractInt("spinTilePosY");
    extractInt("spinTileWidth");
    extractInt("spinTileHeight");

   return 1;
    return 1;
}

void UIPreviewApp::Init()
@@ -89,7 +93,6 @@
    //   osl::File::getFileURLFromSystemPath(GetCommandLineParam(i), aFileUrl);
    //    uifiles.push_back(aFileUrl);
    //}

    //if (uifiles.empty())
    //{
    //    fprintf(stderr, "Usage: ui-previewer file.ui\n");
@@ -105,21 +108,6 @@
        TiledRenderingDialog pDialog;

        pDialog.Execute();
/*
        {
            VclBuilder aBuilder(pDialog, OUString(), "sw/qa/tiledrendering/tiledrendering.ui");
            Dialog *pRealDialog = dynamic_cast<Dialog*>(aBuilder.get_widget_root());

            if (!pRealDialog)
                pRealDialog = pDialog;

            if (pRealDialog)
            {
                pRealDialog->SetText(OUString("LibreOffice ui-previewer"));
                pRealDialog->SetStyle(pDialog->GetStyle()|WB_CLOSEABLE);
                pRealDialog->Execute();
            }
        }*/
    }
    catch (const uno::Exception &e)
    {
@@ -129,12 +117,6 @@
    return EXIT_SUCCESS;
}

void render(){


}


void vclmain::createApplication()
{
    static UIPreviewApp aApp;
diff --git a/sw/qa/tiledrendering/tiledrendering.ui b/sw/qa/tiledrendering/tiledrendering.ui
index 7d051fb..f27939c 100644
--- a/sw/qa/tiledrendering/tiledrendering.ui
+++ b/sw/qa/tiledrendering/tiledrendering.ui
@@ -22,10 +22,10 @@
                    <property name="can_focus">False</property>
                    <property name="orientation">vertical</property>
                    <child>
                      <object class="GtkLabel" id="labelContentWidth">
                      <object class="GtkLabel" id="labelContextWidth">
                        <property name="visible">True</property>
                        <property name="can_focus">False</property>
                        <property name="label" translatable="yes">contentWidth</property>
                        <property name="label" translatable="yes">contextWidth</property>
                      </object>
                      <packing>
                        <property name="expand">True</property>
@@ -34,10 +34,10 @@
                      </packing>
                    </child>
                    <child>
                      <object class="GtkLabel" id="labelContentHeight">
                      <object class="GtkLabel" id="labelContextHeight">
                        <property name="visible">True</property>
                        <property name="can_focus">False</property>
                        <property name="label" translatable="yes">contentHeight</property>
                        <property name="label" translatable="yes">contextHeight</property>
                      </object>
                      <packing>
                        <property name="expand">True</property>
@@ -106,7 +106,7 @@
                    <property name="can_focus">False</property>
                    <property name="orientation">vertical</property>
                    <child>
                      <object class="GtkSpinButton" id="spinContentWidth">
                      <object class="GtkSpinButton" id="spinContextWidth">
                        <property name="visible">True</property>
                        <property name="can_focus">True</property>
                        <property name="invisible_char">•</property>
@@ -120,7 +120,7 @@
                      </packing>
                    </child>
                    <child>
                      <object class="GtkSpinButton" id="spinContentHeight">
                      <object class="GtkSpinButton" id="spinContextHeight">
                        <property name="visible">True</property>
                        <property name="can_focus">True</property>
                        <property name="invisible_char">•</property>